<template>
  <div>
    <DockerTitle titleText="门诊确诊"></DockerTitle>
    <el-divider></el-divider>
    <el-form :model="wyform" label-width="100px">
      <el-form-item label="诊断结果">
        <el-input type="textarea" :rows="3" v-model="wyform.diagnosis" placeholder="请输入诊断结果"></el-input>
      </el-form-item>
      <el-form-item label="处理意见">
        <el-input type="textarea" :rows="3" v-model="wyform.cure" placeholder="请输入处理意见"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="save">提交确认</el-button>
        <el-button type="primary" @click="reset">重置输入</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script setup>
import { reactive } from 'vue';
import DockerTitle from '@/components/doctor/title'
import { post } from '@/util/axios'
import { RegisterStore } from '@/stores/counter'
const registerStore = RegisterStore()
const register = registerStore.get()
const wyform = reactive({
  diagnosis: '',
  cure: '',
  registerId: register.value.id
})
function save () {
  post('/medicalRecord/quezhen', wyform, content => {
    console.dir(content)
  })
}
function reset () {
  wyform.diagnosis = ''
  wyform.cure = ''
}
</script>

<style scoped lang="scss">
</style>
